package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取备用行情，包括特定的行情指标
* @author: codesmith
**/
public interface BakDailyBean extends BaseBean {
    String API_NAME = "bak_daily";
    
    interface Fields {
    String ts_code = "ts_code";    //股票代码
    String trade_date = "trade_date";    //交易日期
    String name = "name";    //股票名称
    String pct_change = "pct_change";    //涨跌幅
    String close = "close";    //收盘价
    String change = "change";    //涨跌额
    String open = "open";    //开盘价
    String high = "high";    //最高价
    String low = "low";    //最低价
    String pre_close = "pre_close";    //昨收价
    String vol_ratio = "vol_ratio";    //量比
    String turn_over = "turn_over";    //换手率
    String swing = "swing";    //振幅
    String vol = "vol";    //成交量
    String amount = "amount";    //成交额
    String selling = "selling";    //内盘（主动卖，手）
    String buying = "buying";    //外盘（主动买， 手）
    String total_share = "total_share";    //总股本(万)
    String float_share = "float_share";    //流通股本(万)
    String pe = "pe";    //市盈(动)
    String industry = "industry";    //所属行业
    String area = "area";    //所属地域
    String float_mv = "float_mv";    //流通市值
    String total_mv = "total_mv";    //总市值
    String avg_price = "avg_price";    //平均价
    String strength = "strength";    //强弱度(%)
    String activity = "activity";    //活跃度(%)
    String avg_turnover = "avg_turnover";    //笔换手
    String attack = "attack";    //攻击波(%)
    String interval_3 = "interval_3";    //近3月涨幅
    String interval_6 = "interval_6";    //近6月涨幅
    }
    
    interface Params {
        ts_code ts_code = new ts_code();
        /*
        * 股票代码
        */
        class ts_code extends BaseRequestParam {
            { key = "ts_code"; }
        }
        trade_date trade_date = new trade_date();
        /*
        * 交易日期
        */
        class trade_date extends BaseRequestParam {
            { key = "trade_date"; }
        }
        start_date start_date = new start_date();
        /*
        * 开始日期
        */
        class start_date extends BaseRequestParam {
            { key = "start_date"; }
        }
        end_date end_date = new end_date();
        /*
        * 结束日期
        */
        class end_date extends BaseRequestParam {
            { key = "end_date"; }
        }
        offset offset = new offset();
        /*
        * 开始行数
        */
        class offset extends BaseRequestParam {
            { key = "offset"; }
        }
        limit limit = new limit();
        /*
        * 最大行数
        */
        class limit extends BaseRequestParam {
            { key = "limit"; }
        }
    }
}